import request from '@/utils/request'

// 查询宠物申请列表
export function listAdoptionapplication(query) {
  return request({
    url: '/pet/adoptionapplication/list',
    method: 'get',
    params: query
  })
}

// 查询宠物申请详细
export function getAdoptionapplication(id) {
  return request({
    url: '/pet/adoptionapplication/' + id,
    method: 'get'
  })
}

// 新增宠物申请
export function addAdoptionapplication(data) {
  return request({
    url: '/pet/adoptionapplication',
    method: 'post',
    data: data
  })
}

// 修改宠物申请
export function updateAdoptionapplication(data) {
  return request({
    url: '/pet/adoptionapplication',
    method: 'put',
    data: data
  })
}

// 删除宠物申请
export function delAdoptionapplication(id) {
  return request({
    url: '/pet/adoptionapplication/' + id,
    method: 'delete'
  })
}
